home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 5 / Apprentice-Release5.iso / Environments / Oberon⁄F™ 1.2 / Preinstalled version / Obx / Docu / Lines < prev    next >
MacBinary  |  1996-07-08  |  5.0 KB  |  [oODC/obnF]

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


This file was processed as: MacBinary (archive/macBinary).

ConfidenceProgramDetectionMatch TypeSupport
10% dexvert MacBinary (archive/macBinary) fallback Supported
10% dexvert Jesper Olsen Module (music/jesperOlsen) magic Supported
100% file MacBinary II, inited, Mon Jul 8 09:37:01 1996, modified Mon Jul 8 09:37:01 1996, creator 'obnF', type 'oODC', 4502 bytes "Lines" , at 0x1216 318 bytes resource default (weak)
99% file data default
65% TrID TTComp archive compressed (bin-2K) default (weak)
33% TrID MacBinary 2 default (weak)
0% TrID Sybase iAnywhere database files default (weak)
100% lsar MacBinary default


id metadata
keyvalue
macFileType[oODC]
macFileCreator[obnF]



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 05 4c 69 6e 65 73 00 | 00 00 00 00 00 00 00 00 |..Lines.|........|
|00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 6f 4f 44 43 6f 62 6e | 46 01 00 00 00 00 00 00 |.oODCobn|F.......|
|00000050| 00 00 00 00 00 11 96 00 | 00 01 3e ae 06 bf 7d ae |........|..>...}.|
|00000060| 06 bf 7d 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |..}.....|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 b8 d0 00 00 |........|........|
|00000080| 43 44 4f 6f 00 00 00 00 | 82 f1 44 6f 63 75 6d 65 |CDOo....|..Docume|
|00000090| 6e 74 73 2e 53 74 64 44 | 6f 63 75 6d 65 6e 74 44 |nts.StdD|ocumentD|
|000000a0| 65 73 63 00 f1 44 6f 63 | 75 6d 65 6e 74 73 2e 44 |esc..Doc|uments.D|
|000000b0| 6f 63 75 6d 65 6e 74 44 | 65 73 63 00 f1 43 6f 6e |ocumentD|esc..Con|
|000000c0| 74 61 69 6e 65 72 73 2e | 56 69 65 77 44 65 73 63 |tainers.|ViewDesc|
|000000d0| 00 f1 56 69 65 77 73 2e | 56 69 65 77 44 65 73 63 |..Views.|ViewDesc|
|000000e0| 00 f0 53 74 6f 72 65 73 | 2e 53 74 6f 72 65 44 65 |..Stores|.StoreDe|
|000000f0| 73 63 00 00 00 00 00 00 | 00 00 00 07 00 00 00 13 |sc......|........|
|00000100| 11 00 00 00 00 00 83 f1 | 44 6f 63 75 6d 65 6e 74 |........|Document|
|00000110| 73 2e 4d 6f 64 65 6c 44 | 65 73 63 00 f1 43 6f 6e |s.ModelD|esc..Con|
|00000120| 74 61 69 6e 65 72 73 2e | 4d 6f 64 65 6c 44 65 73 |tainers.|ModelDes|
|00000130| 63 00 f1 4d 6f 64 65 6c | 73 2e 4d 6f 64 65 6c 44 |c..Model|s.ModelD|
|00000140| 65 73 63 00 f1 53 74 6f | 72 65 73 2e 45 6c 65 6d |esc..Sto|res.Elem|
|00000150| 44 65 73 63 00 f2 04 00 | 00 00 00 00 00 00 61 10 |Desc....|......a.|
|00000160| 00 00 09 00 00 00 59 10 | 00 00 00 00 00 00 00 82 |......Y.|........|
|00000170| f1 54 65 78 74 56 69 65 | 77 73 2e 53 74 64 56 69 |.TextVie|ws.StdVi|
|00000180| 65 77 44 65 73 63 00 f1 | 54 65 78 74 56 69 65 77 |ewDesc..|TextView|
|00000190| 73 2e 56 69 65 77 44 65 | 73 63 00 f2 02 00 00 00 |s.ViewDe|sc......|
|000001a0| 00 00 00 00 00 00 00 00 | 07 00 00 00 03 10 00 00 |........|........|
|000001b0| 00 00 00 83 f1 54 65 78 | 74 4d 6f 64 65 6c 73 2e |.....Tex|tModels.|
|000001c0| 53 74 64 4d 6f 64 65 6c | 44 65 73 63 00 f1 54 65 |StdModel|Desc..Te|
|000001d0| 78 74 4d 6f 64 65 6c 73 | 2e 4d 6f 64 65 6c 44 65 |xtModels|.ModelDe|
|000001e0| 73 63 00 f2 06 00 00 00 | 00 00 00 00 7e 0e 00 00 |sc......|....~...|
|000001f0| 0f 00 00 00 76 0e 00 00 | 00 00 00 00 00 00 4a 03 |....v...|......J.|
|00000200| 00 00 00 82 f1 54 65 78 | 74 4d 6f 64 65 6c 73 2e |.....Tex|tModels.|
|00000210| 41 74 74 72 69 62 75 74 | 65 73 44 65 73 63 00 f2 |Attribut|esDesc..|
|00000220| 04 00 00 00 00 00 00 00 | 36 00 00 00 00 00 00 00 |........|6.......|
|00000230| 22 00 00 00 00 00 00 00 | 00 01 00 00 00 00 48 65 |".......|......He|
|00000240| 6c 76 65 74 69 63 61 00 | 7c be 01 00 00 00 00 00 |lvetica.||.......|
|00000250| bc 02 00 00 00 00 00 00 | 00 00 00 2a 75 15 54 c8 |........|...*u.T.|
|00000260| 06 00 82 f1 54 65 78 74 | 52 75 6c 65 72 73 2e 53 |....Text|Rulers.S|
|00000270| 74 64 52 75 6c 65 72 44 | 65 73 63 00 f1 54 65 78 |tdRulerD|esc..Tex|
|00000280| 74 52 75 6c 65 72 73 2e | 52 75 6c 65 72 44 65 73 |tRulers.|RulerDes|
|00000290| 63 00 f2 03 00 00 00 00 | 00 00 00 b1 00 00 00 07 |c.......|........|
|000002a0| 00 00 00 a3 00 00 00 00 | 00 00 83 f1 54 65 78 74 |........|....Text|
|000002b0| 52 75 6c 65 72 73 2e 53 | 74 64 53 74 79 6c 65 44 |Rulers.S|tdStyleD|
|000002c0| 65 73 63 00 f1 54 65 78 | 74 52 75 6c 65 72 73 2e |esc..Tex|tRulers.|
|000002d0| 53 74 79 6c 65 44 65 73 | 63 00 f2 07 00 00 00 00 |StyleDes|c.......|
|000002e0| 00 00 00 00 00 00 00 08 | 00 00 00 5a 00 00 00 00 |........|...Z....|
|000002f0| 00 00 00 82 f1 54 65 78 | 74 52 75 6c 65 72 73 2e |.....Tex|tRulers.|
|00000300| 41 74 74 72 69 62 75 74 | 65 73 44 65 73 63 00 f2 |Attribut|esDesc..|
|00000310| 04 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000320| 24 00 00 00 00 01 00 00 | 00 00 00 00 00 00 00 00 |$.......|........|
|00000330| 00 00 00 00 00 00 b4 21 | 02 00 38 63 00 00 88 b6 |.......!|..8c....|
|00000340| 02 00 03 00 00 00 00 00 | 00 00 00 1b 00 00 00 01 |........|........|
|00000350| 82 f2 0d 00 00 00 00 00 | 00 00 2f 00 00 00 00 00 |........|../.....|
|00000360| 00 00 22 00 00 00 00 00 | 00 00 00 01 00 00 00 00 |..".....|........|
|00000370| 48 65 6c 76 65 74 69 63 | 61 00 7c be 01 00 00 00 |Helvetic|a.|.....|
|00000380| 00 00 90 01 00 00 00 00 | f1 01 00 00 02 82 f2 0d |........|........|
|00000390| 00 00 00 00 00 00 00 90 | 00 00 00 00 00 00 00 22 |........|......."|
|000003a0| 00 00 00 00 00 00 00 00 | 01 00 00 00 00 48 65 6c |........|.....Hel|
|000003b0| 76 65 74 69 63 61 00 7c | be 01 00 01 00 00 00 90 |vetica.||........|
|000003c0| 01 00 00 00 00 08 00 00 | 00 01 ba 00 00 00 02 08 |........|........|
|000003d0| 00 00 00 01 05 00 00 00 | 02 08 00 00 00 01 78 01 |........|......x.|
|000003e0| 00 00 02 08 00 00 00 01 | 4d 00 00 00 02 09 00 00 |........|M.......|
|000003f0| 00 01 69 02 00 00 02 08 | 00 00 00 01 0c 00 00 00 |..i.....|........|
|00000400| 02 0d 00 00 00 01 82 00 | 00 00 02 0d 00 00 00 01 |........|........|
|00000410| b5 02 00 00 02 0d 00 00 | 00 01 56 00 00 00 01 00 |........|..V.....|
|00000420| 00 00 00 fc d7 03 00 b4 | 21 02 00 82 f1 53 74 64 |........|!....Std|
|00000430| 4c 69 6e 6b 73 2e 4c 69 | 6e 6b 44 65 73 63 00 f2 |Links.Li|nkDesc..|
|00000440| 03 00 00 00 00 00 00 00 | 32 00 00 00 00 00 00 00 |........|2.......|
|00000450| 29 00 00 00 00 00 00 01 | 22 00 00 00 53 74 64 43 |).......|"...StdC|
|00000460| 6d 64 73 2e 4f 70 65 6e | 44 6f 63 28 27 4f 62 78 |mds.Open|Doc('Obx|
|00000470| 2f 4d 6f 64 2f 4c 69 6e | 65 73 27 29 00 03 82 f2 |/Mod/Lin|es')....|
|00000480| 0d 00 00 00 00 00 00 00 | 3b 00 00 00 00 00 00 00 |........|;.......|
|00000490| 22 00 00 00 00 00 00 00 | ff 00 00 00 00 00 48 65 |".......|......He|
|000004a0| 6c 76 65 74 69 63 61 00 | 7c be 01 00 02 00 00 00 |lvetica.||.......|
|000004b0| 90 01 00 00 00 00 11 00 | 00 00 01 00 00 00 00 ac |........|........|
|000004c0| 84 01 00 b4 21 02 00 82 | f2 13 00 00 00 00 00 00 |....!...|........|
|000004d0| 00 22 00 00 00 00 00 00 | 00 08 00 00 00 00 00 00 |."......|........|
|000004e0| 00 00 00 00 00 01 02 00 | 00 00 01 00 00 00 00 ec |........|........|
|000004f0| 84 02 00 b4 21 02 00 82 | f1 44 65 76 43 6f 6d 6d |....!...|.DevComm|
|00000500| 61 6e 64 65 72 73 2e 53 | 74 64 56 69 65 77 44 65 |anders.S|tdViewDe|
|00000510| 73 63 00 f1 44 65 76 43 | 6f 6d 6d 61 6e 64 65 72 |sc..DevC|ommander|
|00000520| 73 2e 56 69 65 77 44 65 | 73 63 00 f2 03 00 00 00 |s.ViewDe|sc......|
|00000530| 00 00 00 00 00 00 00 00 | 00 00 00 00 06 00 00 00 |........|........|
|00000540| 00 00 00 15 00 00 01 21 | 00 00 00 ff 02 4f 62 65 |.......!|.....Obe|
|00000550| 72 6f 6e 20 62 79 20 45 | 78 61 6d 70 6c 65 3a 20 |ron by E|xample: |
|00000560| 4f 62 78 4c 69 6e 65 73 | 0d 0d 54 68 69 73 20 65 |ObxLines|..This e|
|00000570| 78 61 6d 70 6c 65 20 69 | 6d 70 6c 65 6d 65 6e 74 |xample i|mplement|
|00000580| 73 20 61 20 76 69 65 77 | 20 77 68 69 63 68 20 61 |s a view| which a|
|00000590| 6c 6c 6f 77 73 20 74 6f | 20 64 72 61 77 20 6c 69 |llows to| draw li|
|000005a0| 6e 65 73 20 77 69 74 68 | 20 74 68 65 20 6d 6f 75 |nes with| the mou|
|000005b0| 73 65 2e 20 42 65 79 6f | 6e 64 20 6c 69 6e 65 20 |se. Beyo|nd line |
|000005c0| 65 6e 74 72 79 2c 20 74 | 68 65 20 6f 6e 6c 79 20 |entry, t|he only |
|000005d0| 69 6e 74 65 72 61 63 74 | 69 6f 6e 20 77 69 74 68 |interact|ion with|
|000005e0| 20 73 75 63 68 20 61 20 | 76 69 65 77 20 69 73 20 | such a |view is |
|000005f0| 74 68 72 6f 75 67 68 20 | 74 68 65 20 6b 65 79 62 |through |the keyb|
|00000600| 6f 61 72 64 3a 20 73 6f | 6d 65 20 63 68 61 72 61 |oard: so|me chara|
|00000610| 63 74 65 72 73 20 61 72 | 65 20 69 6e 74 65 72 70 |cters ar|e interp|
|00000620| 72 65 74 65 64 20 61 73 | 20 63 6f 6c 6f 72 73 2c |reted as| colors,|
|00000630| 20 65 2e 67 2e 20 74 79 | 70 69 6e 67 20 69 6e 20 | e.g. ty|ping in |
|00000640| 61 6e 20 22 72 22 20 73 | 65 74 73 20 61 20 76 69 |an "r" s|ets a vi|
|00000650| 65 77 27 73 20 66 6f 72 | 65 67 72 6f 75 6e 64 20 |ew's for|eground |
|00000660| 63 6f 6c 6f 72 20 28 69 | 6e 20 77 68 69 63 68 20 |color (i|n which |
|00000670| 74 68 65 20 6c 69 6e 65 | 73 20 61 72 65 20 64 72 |the line|s are dr|
|00000680| 61 77 6e 29 20 74 6f 20 | 72 65 64 2e 20 54 68 65 |awn) to |red. The|
|00000690| 73 65 20 74 77 6f 20 6f | 70 65 72 61 74 69 6f 6e |se two o|peration|
|000006a0| 73 20 64 6f 6e 27 74 20 | 63 6f 6e 73 74 69 74 75 |s don't |constitu|
|000006b0| 74 65 20 61 20 67 72 61 | 70 68 69 63 73 20 65 64 |te a gra|phics ed|
|000006c0| 69 74 6f 72 20 79 65 74 | 2c 20 62 75 74 20 63 61 |itor yet|, but ca|
|000006d0| 6e 20 73 65 72 76 65 20 | 61 73 20 61 20 73 6b 65 |n serve |as a ske|
|000006e0| 74 63 68 20 66 6f 72 20 | 61 20 6d 6f 72 65 20 75 |tch for |a more u|
|000006f0| 73 65 66 75 6c 20 69 6d | 70 6c 65 6d 65 6e 74 61 |seful im|plementa|
|00000700| 74 69 6f 6e 2e 20 46 75 | 6c 6c 20 75 6e 64 6f 2f |tion. Fu|ll undo/|
|00000710| 72 65 64 6f 20 6f 66 20 | 74 68 65 20 74 77 6f 20 |redo of |the two |
|00000720| 6f 70 65 72 61 74 69 6f | 6e 73 20 69 73 20 73 75 |operatio|ns is su|
|00000730| 70 70 6f 72 74 65 64 2c | 20 68 6f 77 65 76 65 72 |pported,| however|
|00000740| 2e 0d 0d 54 68 65 20 69 | 6d 70 6c 65 6d 65 6e 74 |...The i|mplement|
|00000750| 61 74 69 6f 6e 20 6f 66 | 20 4f 62 78 4c 69 6e 65 |ation of| ObxLine|
|00000760| 73 20 69 73 20 73 69 6d | 70 6c 65 3a 20 74 68 65 |s is sim|ple: the|
|00000770| 72 65 20 69 73 20 61 20 | 76 69 65 77 2c 20 61 20 |re is a |view, a |
|00000780| 6d 6f 64 65 6c 2c 20 61 | 6e 64 20 61 20 6c 69 6e |model, a|nd a lin|
|00000790| 65 20 64 61 74 61 20 73 | 74 72 75 63 74 75 72 65 |e data s|tructure|
|000007a0| 2e 20 54 68 65 20 6d 6f | 64 65 6c 20 72 65 70 72 |. The mo|del repr|
|000007b0| 65 73 65 6e 74 73 20 61 | 20 76 69 65 77 27 73 20 |esents a| view's |
|000007c0| 67 72 61 70 68 2c 20 77 | 68 69 63 68 20 63 6f 6e |graph, w|hich con|
|000007d0| 73 69 73 74 73 20 6f 66 | 20 61 20 6c 69 6e 65 61 |sists of| a linea|
|000007e0| 72 20 6c 69 73 74 20 6f | 66 20 6c 69 6e 65 73 2e |r list o|f lines.|
|000007f0| 20 41 20 6c 69 6e 65 20 | 69 73 20 64 65 73 63 72 | A line |is descr|
|00000800| 69 62 65 64 20 62 79 20 | 69 74 73 20 74 77 6f 20 |ibed by |its two |
|00000810| 65 6e 64 20 70 6f 69 6e | 74 73 20 28 78 30 2c 20 |end poin|ts (x0, |
|00000820| 79 30 29 20 61 6e 64 20 | 28 78 31 2c 20 79 31 29 |y0) and |(x1, y1)|
|00000830| 2e 20 45 61 63 68 20 76 | 69 65 77 20 68 61 73 20 |. Each v|iew has |
|00000840| 69 74 73 20 6f 77 6e 20 | 69 6e 64 65 70 65 6e 64 |its own |independ|
|00000850| 65 6e 74 20 66 6f 72 65 | 67 72 6f 75 6e 64 20 63 |ent fore|ground c|
|00000860| 6f 6c 6f 72 2e 20 54 68 | 65 72 65 20 69 73 20 61 |olor. Th|ere is a|
|00000870| 6e 20 6f 70 65 72 61 74 | 69 6f 6e 20 66 6f 72 20 |n operat|ion for |
|00000880| 74 68 65 20 65 6e 74 72 | 79 20 6f 66 20 61 20 6c |the entr|y of a l|
|00000890| 69 6e 65 20 28 61 20 6d | 6f 64 65 6c 20 6f 70 65 |ine (a m|odel ope|
|000008a0| 72 61 74 69 6f 6e 29 2c | 20 61 6e 64 20 61 6e 20 |ration),| and an |
|000008b0| 6f 70 65 72 61 74 69 6f | 6e 20 66 6f 72 20 74 68 |operatio|n for th|
|000008c0| 65 20 63 68 61 6e 67 65 | 20 6f 66 20 61 20 66 6f |e change| of a fo|
|000008d0| 72 65 67 72 6f 75 6e 64 | 20 63 6f 6c 6f 72 20 28 |reground| color (|
|000008e0| 61 20 76 69 65 77 20 6f | 70 65 72 61 74 69 6f 6e |a view o|peration|
|000008f0| 29 2e 0d 0d 57 68 65 6e | 20 61 20 6c 69 6e 65 20 |)...When| a line |
|00000900| 69 73 20 65 6e 74 65 72 | 65 64 20 28 6f 72 20 74 |is enter|ed (or t|
|00000910| 68 65 20 65 6e 74 72 79 | 20 69 73 20 75 6e 64 6f |he entry| is undo|
|00000920| 6e 65 29 2c 20 69 74 73 | 20 62 6f 75 6e 64 69 6e |ne), its| boundin|
|00000930| 67 20 62 6f 78 20 69 73 | 20 72 65 73 74 6f 72 65 |g box is| restore|
|00000940| 64 2e 20 46 6f 72 20 74 | 68 69 73 20 70 75 72 70 |d. For t|his purp|
|00000950| 6f 73 65 2c 20 61 20 73 | 75 69 74 61 62 6c 65 20 |ose, a s|uitable |
|00000960| 75 70 64 61 74 65 20 6d | 65 73 73 61 67 65 20 69 |update m|essage i|
|00000970| 73 20 64 65 66 69 6e 65 | 64 2e 0d 0d 54 68 65 72 |s define|d...Ther|
|00000980| 65 20 61 72 65 20 74 77 | 6f 20 69 6e 74 65 72 65 |e are tw|o intere|
|00000990| 73 74 69 6e 67 20 61 73 | 70 65 63 74 73 20 61 62 |sting as|pects ab|
|000009a0| 6f 75 74 20 74 68 65 20 | 4f 62 78 4c 69 6e 65 73 |out the |ObxLines|
|000009b0| 20 69 6d 70 6c 65 6d 65 | 6e 74 61 74 69 6f 6e 3a | impleme|ntation:|
|000009c0| 0d 0d 54 68 65 20 63 6f | 6e 74 65 6e 74 73 20 6f |..The co|ntents o|
|000009d0| 66 20 61 20 67 72 61 70 | 68 2c 20 69 2e 65 2e 20 |f a grap|h, i.e. |
|000009e0| 74 68 65 20 6c 69 6e 65 | 61 72 20 6c 69 73 74 20 |the line|ar list |
|000009f0| 6f 66 20 6c 69 6e 65 73 | 2c 20 69 73 20 69 6d 6d |of lines|, is imm|
|00000a00| 75 74 61 62 6c 65 2e 20 | 54 68 69 73 20 6d 65 61 |utable. |This mea|
|00000a10| 6e 73 20 74 68 61 74 20 | 61 20 6c 69 6e 65 20 77 |ns that |a line w|
|00000a20| 68 69 63 68 20 68 61 73 | 20 62 65 65 6e 20 69 6e |hich has| been in|
|00000a30| 73 65 72 74 65 64 20 69 | 6e 20 61 20 67 72 61 70 |serted i|n a grap|
|00000a40| 68 20 69 73 20 6e 65 76 | 65 72 20 6d 6f 64 69 66 |h is nev|er modif|
|00000a50| 69 65 64 20 61 67 61 69 | 6e 2e 20 54 68 65 20 6c |ied agai|n. The l|
|00000a60| 69 73 74 20 6d 61 79 20 | 62 65 63 6f 6d 65 20 6c |ist may |become l|
|00000a70| 6f 6e 67 65 72 20 62 79 | 20 68 61 76 69 6e 67 20 |onger by| having |
|00000a80| 61 6e 6f 74 68 65 72 20 | 6c 69 6e 65 20 70 6f 69 |another |line poi|
|00000a90| 6e 74 20 61 74 20 74 68 | 65 20 65 78 69 73 74 69 |nt at th|e existi|
|00000aa0| 6e 67 20 6c 69 6e 65 2c | 20 62 75 74 20 74 68 65 |ng line,| but the|
|00000ab0| 20 65 78 69 73 74 69 6e | 67 20 6c 69 6e 65 20 69 | existin|g line i|
|00000ac0| 74 73 65 6c 66 20 72 65 | 6d 61 69 6e 73 20 75 6e |tself re|mains un|
|00000ad0| 63 68 61 6e 67 65 64 2e | 20 46 6f 72 20 65 78 61 |changed.| For exa|
|00000ae0| 6d 70 6c 65 2c 20 61 6e | 20 75 6e 64 6f 20 6f 70 |mple, an| undo op|
|00000af0| 65 72 61 74 69 6f 6e 20 | 6d 65 72 65 6c 79 20 63 |eration |merely c|
|00000b00| 68 61 6e 67 65 73 20 74 | 68 65 20 67 72 61 70 68 |hanges t|he graph|
|00000b10| 20 74 6f 20 73 68 6f 77 | 20 61 20 73 68 6f 72 74 | to show| a short|
|00000b20| 65 72 20 70 69 65 63 65 | 20 6f 66 20 69 74 73 20 |er piece| of its |
|00000b30| 6c 69 6e 65 20 6c 69 73 | 74 2c 20 72 65 64 6f 20 |line lis|t, redo |
|00000b40| 73 68 6f 77 73 20 61 20 | 6c 61 72 67 65 72 20 70 |shows a |larger p|
|00000b50| 69 65 63 65 20 6f 66 20 | 69 74 20 61 67 61 69 6e |iece of |it again|
|00000b60| 2e 0d 0d 41 6e 20 69 6d | 6d 75 74 61 62 6c 65 20 |...An im|mutable |
|00000b70| 64 61 74 61 20 73 74 72 | 75 63 74 75 72 65 20 68 |data str|ucture h|
|00000b80| 61 73 20 74 68 65 20 6e | 69 63 65 20 70 72 6f 70 |as the n|ice prop|
|00000b90| 65 72 74 79 20 74 68 61 | 74 20 69 74 20 63 61 6e |erty tha|t it can|
|00000ba0| 20 62 65 20 66 72 65 65 | 6c 79 20 73 68 61 72 65 | be free|ly share|
|00000bb0| 64 3a 20 63 6f 70 79 69 | 6e 67 20 63 61 6e 20 62 |d: copyi|ng can b|
|00000bc0| 65 20 69 6d 70 6c 65 6d | 65 6e 74 65 64 20 6d 65 |e implem|ented me|
|00000bd0| 72 65 6c 79 20 62 79 20 | 6c 65 74 74 69 6e 67 20 |rely by |letting |
|00000be0| 61 6e 6f 74 68 65 72 20 | 70 6f 69 6e 74 65 72 20 |another |pointer |
|00000bf0| 70 6f 69 6e 74 20 74 6f | 20 74 68 65 20 73 61 6d |point to| the sam|
|00000c00| 65 20 64 61 74 61 20 73 | 74 72 75 63 74 75 72 65 |e data s|tructure|
|00000c10| 2e 20 54 68 69 73 20 69 | 73 20 75 73 65 64 20 69 |. This i|s used i|
|00000c20| 6e 20 74 68 65 20 65 78 | 61 6d 70 6c 65 20 62 65 |n the ex|ample be|
|00000c30| 6c 6f 77 20 77 68 65 6e | 20 63 6f 70 79 69 6e 67 |low when| copying|
|00000c40| 20 74 68 65 20 6d 6f 64 | 65 6c 2e 0d 0d 54 68 65 | the mod|el...The|
|00000c50| 20 73 65 63 6f 6e 64 20 | 69 6e 74 65 72 65 73 74 | second |interest|
|00000c60| 69 6e 67 20 66 65 61 74 | 75 72 65 20 6f 66 20 4f |ing feat|ure of O|
|00000c70| 62 78 4c 69 6e 65 73 20 | 69 73 20 74 68 65 20 77 |bxLines |is the w|
|00000c80| 61 79 20 72 75 62 62 65 | 72 62 61 6e 64 69 6e 67 |ay rubbe|rbanding|
|00000c90| 20 69 73 20 69 6d 70 6c | 65 6d 65 6e 74 65 64 2e | is impl|emented.|
|00000ca0| 20 52 75 62 62 65 72 62 | 61 6e 64 69 6e 67 20 69 | Rubberb|anding i|
|00000cb0| 73 20 74 68 65 20 66 65 | 65 64 62 61 63 6b 20 67 |s the fe|edback g|
|00000cc0| 69 76 65 6e 20 77 68 65 | 6e 20 64 72 61 77 69 6e |iven whe|n drawin|
|00000cd0| 67 20 61 20 6e 65 77 20 | 6c 69 6e 65 2c 20 61 73 |g a new |line, as|
|00000ce0| 20 6c 6f 6e 67 20 61 73 | 20 74 68 65 20 6d 6f 75 | long as| the mou|
|00000cf0| 73 65 20 62 75 74 74 6f | 6e 20 69 73 20 68 65 6c |se butto|n is hel|
|00000d00| 64 20 64 6f 77 6e 2e 20 | 50 72 6f 63 65 64 75 72 |d down. |Procedur|
|00000d10| 65 20 48 61 6e 64 6c 65 | 43 74 72 6c 4d 73 67 20 |e Handle|CtrlMsg |
|00000d20| 73 68 6f 77 73 20 61 20 | 74 79 70 69 63 61 6c 20 |shows a |typical |
|00000d30| 69 6d 70 6c 65 6d 65 6e | 74 61 74 69 6f 6e 20 6f |implemen|tation o|
|00000d40| 66 20 73 75 63 68 20 61 | 20 6d 65 63 68 61 6e 69 |f such a| mechani|
|00000d50| 73 6d 3a 20 69 74 20 63 | 6f 6e 73 69 73 74 73 20 |sm: it c|onsists |
|00000d60| 6f 66 20 61 20 70 6f 6c | 6c 69 6e 67 20 6c 6f 6f |of a pol|ling loo|
|00000d70| 70 2c 20 77 68 69 63 68 | 20 72 65 70 65 61 74 65 |p, which| repeate|
|00000d80| 64 6c 79 20 70 6f 6c 6c | 73 20 74 68 65 20 6d 6f |dly poll|s the mo|
|00000d90| 75 73 65 20 62 75 74 74 | 6f 6e 27 73 20 73 74 61 |use butt|on's sta|
|00000da0| 74 65 2e 20 57 68 65 6e | 20 74 68 65 20 6d 6f 75 |te. When| the mou|
|00000db0| 73 65 20 68 61 73 20 6d | 6f 76 65 64 2c 20 74 68 |se has m|oved, th|
|00000dc0| 65 20 6f 6c 64 20 72 75 | 62 62 65 72 62 61 6e 64 |e old ru|bberband|
|00000dd0| 20 6c 69 6e 65 20 6d 75 | 73 74 20 62 65 20 65 72 | line mu|st be er|
|00000de0| 61 73 65 64 2c 20 61 6e | 64 20 61 20 6e 65 77 20 |ased, an|d a new |
|00000df0| 6f 6e 65 20 6d 75 73 74 | 20 62 65 20 64 72 61 77 |one must| be draw|
|00000e00| 6e 2e 0d 0d 45 72 61 73 | 69 6e 67 20 74 68 65 20 |n...Eras|ing the |
|00000e10| 6f 6c 64 20 72 75 62 62 | 65 72 62 61 6e 64 20 6c |old rubb|erband l|
|00000e20| 69 6e 65 20 69 73 20 64 | 6f 6e 65 20 75 73 69 6e |ine is d|one usin|
|00000e30| 67 20 61 20 74 65 6d 70 | 6f 72 61 72 79 20 62 75 |g a temp|orary bu|
|00000e40| 66 66 65 72 2e 20 42 65 | 66 6f 72 65 20 65 6e 74 |ffer. Be|fore ent|
|00000e50| 65 72 69 6e 67 20 74 68 | 65 20 70 6f 6c 6c 69 6e |ering th|e pollin|
|00000e60| 67 20 6c 6f 6f 70 2c 20 | 74 68 65 20 66 72 61 6d |g loop, |the fram|
|00000e70| 65 27 73 20 76 69 73 69 | 62 6c 65 20 61 72 65 61 |e's visi|ble area|
|00000e80| 20 69 73 20 73 61 76 65 | 64 20 69 6e 20 74 68 65 | is save|d in the|
|00000e90| 20 66 72 61 6d 65 27 73 | 20 62 75 66 66 65 72 20 | frame's| buffer |
|00000ea0| 28 6f 6e 65 20 62 75 66 | 66 65 72 20 63 61 6e 20 |(one buf|fer can |
|00000eb0| 62 65 20 6f 70 65 6e 65 | 64 20 73 69 6d 75 6c 74 |be opene|d simult|
|00000ec0| 61 6e 65 6f 75 73 6c 79 | 20 70 65 72 20 66 72 61 |aneously| per fra|
|00000ed0| 6d 65 29 2e 20 49 6e 20 | 74 68 65 20 70 6f 6c 6c |me). In |the poll|
|00000ee0| 69 6e 67 20 6c 6f 6f 70 | 2c 20 77 68 65 6e 20 74 |ing loop|, when t|
|00000ef0| 68 65 20 72 75 62 62 65 | 72 62 61 6e 64 20 6c 69 |he rubbe|rband li|
|00000f00| 6e 65 20 6d 75 73 74 20 | 62 65 20 65 72 61 73 65 |ne must |be erase|
|00000f10| 64 2c 20 69 74 73 20 62 | 6f 75 6e 64 69 6e 67 20 |d, its b|ounding |
|00000f20| 62 6f 78 20 69 73 20 72 | 65 73 74 6f 72 65 64 20 |box is r|estored |
|00000f30| 66 72 6f 6d 20 74 68 65 | 20 62 75 66 66 65 72 2e |from the| buffer.|
|00000f40| 20 41 66 74 65 72 20 74 | 68 65 20 70 6f 6c 6c 69 | After t|he polli|
|00000f50| 6e 67 20 6c 6f 6f 70 2c | 20 74 68 65 20 6c 61 73 |ng loop,| the las|
|00000f60| 74 20 72 75 62 62 65 72 | 62 61 6e 64 20 6c 69 6e |t rubber|band lin|
|00000f70| 65 20 69 73 20 65 72 61 | 73 65 64 20 74 68 65 20 |e is era|sed the |
|00000f80| 73 61 6d 65 20 77 61 79 | 2c 20 65 78 63 65 70 74 |same way|, except|
|00000f90| 20 74 68 61 74 20 74 68 | 65 20 74 65 6d 70 6f 72 | that th|e tempor|
|00000fa0| 61 72 79 20 62 75 66 66 | 65 72 20 69 73 20 64 69 |ary buff|er is di|
|00000fb0| 73 70 6f 73 65 64 20 6f | 66 20 73 69 6d 75 6c 74 |sposed o|f simult|
|00000fc0| 61 6e 65 6f 75 73 6c 79 | 2e 0d 0d 57 69 74 68 20 |aneously|...With |
|00000fd0| 74 68 65 20 48 61 6e 64 | 6c 65 50 72 6f 70 4d 73 |the Hand|lePropMs|
|00000fe0| 67 20 70 72 6f 63 65 64 | 75 72 65 2c 20 74 68 65 |g proced|ure, the|
|00000ff0| 20 76 69 65 77 20 69 6e | 64 69 63 61 74 65 73 20 | view in|dicates |
|00001000| 74 68 61 74 20 69 74 20 | 6d 61 79 20 62 65 20 66 |that it |may be f|
|00001010| 6f 63 75 73 65 64 2c 20 | 73 6f 20 69 74 20 63 61 |ocused, |so it ca|
|00001020| 6e 20 62 65 20 65 64 69 | 74 65 64 20 69 6e 20 70 |n be edi|ted in p|
|00001030| 6c 61 63 65 2e 0d 0d 02 | 4f 62 78 4c 69 6e 65 73 |lace....|ObxLines|
|00001040| a0 a0 73 6f 75 72 63 65 | 73 02 0d 0d 02 20 22 4f |..source|s.... "O|
|00001050| 62 78 4c 69 6e 65 73 2e | 44 65 70 6f 73 69 74 3b |bxLines.|Deposit;|
|00001060| 20 53 74 64 43 6d 64 73 | 2e 4f 70 65 6e 22 82 f1 | StdCmds|.Open"..|
|00001070| 54 65 78 74 43 6f 6e 74 | 72 6f 6c 6c 65 72 73 2e |TextCont|rollers.|
|00001080| 53 74 64 43 74 72 6c 44 | 65 73 63 00 f1 54 65 78 |StdCtrlD|esc..Tex|
|00001090| 74 43 6f 6e 74 72 6f 6c | 6c 65 72 73 2e 43 6f 6e |tControl|lers.Con|
|000010a0| 74 72 6f 6c 6c 65 72 44 | 65 73 63 00 f1 43 6f 6e |trollerD|esc..Con|
|000010b0| 74 61 69 6e 65 72 73 2e | 43 6f 6e 74 72 6f 6c 6c |tainers.|Controll|
|000010c0| 65 72 44 65 73 63 00 f1 | 43 6f 6e 74 72 6f 6c 6c |erDesc..|Controll|
|000010d0| 65 72 73 2e 43 6f 6e 74 | 72 6f 6c 6c 65 72 44 65 |ers.Cont|rollerDe|
|000010e0| 73 63 00 f2 04 00 00 00 | 00 00 00 00 14 00 00 00 |sc......|........|
|000010f0| 00 00 00 00 09 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001100| 00 00 00 01 82 f2 0e 00 | 00 00 00 00 00 00 61 00 |........|......a.|
|00001110| 00 00 07 00 00 00 59 00 | 00 00 00 00 00 83 f2 10 |......Y.|........|
|00001120| 00 00 00 00 00 00 00 00 | 00 00 00 08 00 00 00 3f |........|.......?|
|00001130| 00 00 00 00 00 00 00 82 | f2 12 00 00 00 00 00 00 |........|........|
|00001140| 00 00 00 00 00 00 00 00 | 00 24 00 00 00 00 01 00 |........|.$......|
|00001150| 00 00 00 00 00 00 00 20 | a3 5a 00 00 00 00 00 18 |....... |.Z......|
|00001160| f0 01 00 38 63 00 00 01 | 00 00 00 01 00 00 00 00 |...8c...|........|
|00001170| 00 00 00 82 f2 0d 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001180| 00 00 00 00 00 22 00 00 | 00 00 00 00 00 00 01 00 |....."..|........|
|00001190| 00 00 00 48 65 6c 76 65 | 74 69 63 61 00 7c be 01 |...Helve|tica.|..|
|000011a0| 00 00 00 00 00 90 01 00 | 00 00 00 00 00 00 00 00 |........|........|
|000011b0| 00 00 00 e0 8c 01 00 e0 | 8c 01 00 34 c8 5d 00 e0 |........|...4.]..|
|000011c0| b9 3b 3e 82 f1 44 6f 63 | 75 6d 65 6e 74 73 2e 43 |.;>..Doc|uments.C|
|000011d0| 6f 6e 74 72 6f 6c 6c 65 | 72 44 65 73 63 00 f2 18 |ontrolle|rDesc...|
|000011e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 08 |........|........|
|000011f0| 00 00 00 00 00 00 00 00 | 09 00 00 00 00 94 4d 73 |........|......Ms|
|00001200| 00 18 2b a3 00 80 fc 0a | 00 00 2f 0d 00 d4 37 67 |..+.....|../...7g|
|00001210| 00 18 fc 95 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001220| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001230| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001240| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001250| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001260| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001270| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001280| 00 00 01 00 00 00 01 0c | 00 00 00 0c 00 00 00 32 |........|.......2|
|00001290| 00 e1 3f 38 3f 00 0e 03 | 00 01 83 38 10 a4 d0 00 |..?8?...|...8....|
|000012a0| 0d 83 21 9c 0c cc 7a 75 | 12 13 8c 90 03 81 80 01 |..!...zu|........|
|000012b0| 05 4c 69 6e 65 73 02 00 | 00 00 50 61 72 74 53 49 |.Lines..|..PartSI|
|000012c0| 54 21 00 00 00 00 00 00 | 00 00 00 00 48 73 00 00 |T!......|....Hs..|
|000012d0| 00 00 50 61 72 74 53 49 | 54 21 00 00 00 00 00 00 |..PartSI|T!......|
|000012e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000012f0| 00 00 ae 04 81 a8 00 00 | 00 00 00 00 01 3e 40 0c |........|.....>@.|
|00001300| 08 0d 81 e0 a7 c8 01 93 | 20 e1 00 f8 02 53 54 bf |........| ....ST.|
|00001310| 20 2c 04 97 ed 98 29 e0 | 07 89 08 4a 1c 60 6c 4b | ,....).|...J.`lK|
|00001320| f1 19 25 f9 d9 80 c3 01 | c0 40 e0 80 60 60 00 e3 |..%.....|.@..``..|
|00001330| 0c 03 18 86 8b 6d 4b f9 | a8 3c 74 ff a4 bf 32 01 |.....mK.|.<t...2.|
|00001340| c0 30 01 0d 81 13 40 03 | 06 30 00 33 84 1b 38 98 |.0....@.|.0.3..8.|
|00001350| 00 60 c6 00 0c 0f 18 06 | 03 a6 c6 03 18 00 01 9c |.`......|........|
|00001360| 03 08 98 c6 23 18 63 01 | 01 84 7b 39 f3 30 c0 c5 |....#.c.|..{9.0..|
|00001370| f8 42 3e 20 40 a0 ac 39 | 74 50 18 03 c0 cc c0 0f |.B> @..9|tP......|
|00001380| 00 00 00 08 00 50 00 05 | 01 db 02 00 00 00 01 00 |.....P..|........|
|00001390| 00 00 01 0c 00 00 00 0c | 00 00 00 32 00 70 c6 b8 |........|...2.p..|
|000013a0| 0c dc 00 00 00 1c 00 32 | 00 00 57 4e 53 50 00 00 |.......2|..WNSP..|
|000013b0| 00 0a 00 01 ff ff 00 00 | 00 00 00 93 8c 84 00 00 |........|........|
|000013c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000013d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000013e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000013f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
+--------+-------------------------+-------------------------+--------+--------+